<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: yangkang
  Date: 2021/1/22
  Time: 19:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工信息表</title>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="${pageContext.request.contextPath}/js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <script type="text/javascript"></script>
</head>
<body>

    <div class = "container">

        <div class ="row">
            <h3 align="center">员工信息列表</h3>
            <div class="col-lg-2"></div>
            <div class="col-lg-8">

                <table border="1" class="table table-bordered table-hover">

                        <tr class = "success">
                            <th>员工号</th>
                            <th>姓名</th>
                            <th>部门号</th>
                            <th>职位</th>
                            <th>入职时间</th>
                            <th>联系方式</th>
                        </tr>>
                <c:forEach items="${list}" var="employee">
                            <td>${employee.emp_id}</td>
                            <td>${employee.emp_name}</td>
                            <td>${employee.dept_id}</td>
                            <td>${employee.job_name}</td>
                            <%--<td><fmt:formatDate pattern="yyyy年MM月dd日" value="${employee.join_Date}"/></td>--%>
                            <td>${employee.join_Date}</td>
                            <td>${employee.telephone}</td>
                        <tr>
                </c:forEach>
                            <td colspan="9" align="center">
                                <a class="btn btn-default btn-sm" href="${pageContext.request.contextPath}/add.jsp">添加</a>&nbsp;
                            </td>
                        </tr>


                </table>



            </div>
                <div class="col-lg-2"></div>
        </div>
    </div>
</body>
</html>
